package org.xc.producer.controllor;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2018/8/8
 */
@RestController
public class TestCtrl {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/test")
    public String test(){
        return "test-producer;port:"+port;
    }
}
